package com.js.rtu.fragment.n;


import android.os.Bundle;
import android.view.View;

import com.js.rtu.R;
import com.js.rtu.base.BaseMainFragment;
import com.js.rtu.event.StartBrotherEvent;
import com.js.rtu.fragment.forth.AIFragment;
import com.js.rtu.fragment.forth.AlarmFragment;
import com.js.rtu.fragment.forth.BDFragment;
import com.js.rtu.fragment.second.Cmd_22_07Fragment;
import com.js.rtu.fragment.second.Cmd_22_09Fragment;
import com.js.rtu.fragment.second.Cmd_24Fragment;
import com.js.rtu.fragment.second.Cmd_25Fragment;
import com.js.rtu.fragment.second.Cmd_27_0AFragment;
import com.js.rtu.fragment.second.Cmd_27_0DFragment;
import com.js.rtu.fragment.second.Cmd_29Fragment;
import com.js.rtu.fragment.second.Cmd_51Fragment;

import org.greenrobot.eventbus.EventBus;

import butterknife.OnClick;

/**
 * Created by YoKeyword on 16/6/30.
 */
public class OtherPagerFragment extends BaseMainFragment {


    public static OtherPagerFragment newInstance() {
        Bundle args = new Bundle();
        OtherPagerFragment fragment = new OtherPagerFragment();
        fragment.setArguments(args);
        return fragment;
    }


    @Override
    protected int getLayoutId() {
        return R.layout.fragment_tab_pager_other;
    }

    @Override
    protected void initView() {

    }


    @OnClick({R.id.tv_alarm,R.id.tv_bd})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_alarm:
                EventBus.getDefault().post(new StartBrotherEvent(AlarmFragment.newInstance()));
                break;
            case R.id.tv_bd:
                EventBus.getDefault().post(new StartBrotherEvent(BDFragment.newInstance()));
                break;
        }
    }
}
